#-------------------------------------------------
#
# Project created by QtCreator 2025-09-22T19:35:55
#
#-------------------------------------------------

QT       -= core gui

TARGET = ly_common_sdk
TEMPLATE = lib

DEFINES += LY_COMMON_SDK_LIBRARY

DESTDIR = $$PWD/../../output/bin/

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

message("CURRENT PATH: $$PWD")
message("BUILD PATH: $$OUT_PWD")
message("Qt VERSION: $$QT_VERSION")

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        base_logger.cpp \
        ly_common_sdk.cpp

HEADERS += \
        base_logger.h \
        ly_common_sdk.h \
        ly_common_sdk_global.h 



INCLUDEPATH += $$PWD/../../sdk/mingw_x64_lib_spdlog/include
DEPENDPATH += $$PWD/../../sdk/mingw_x64_lib_spdlog/lib

INCLUDEPATH += $$PWD/../../sdk/mingw_x64_lib_boost/include/boost-1_83
DEPENDPATH += $$PWD/../../sdk/mingw_x64_lib_boost/lib

LIBS += -L$$PWD/../../sdk/mingw_x64_lib_spdlog/lib/ -lspdlog
LIBS += -L$$PWD/../../sdk/mingw_x64_lib_boost/lib/  \
            -lboost_atomic-mgw-mt-s-x64-1_83    \
            -lboost_chrono-mgw-mt-s-x64-1_83    \
            -lboost_date_time-mgw-mt-s-x64-1_83 \
            -lboost_filesystem-mgw-mt-s-x64-1_83    \
            -lboost_regex-mgw-mt-s-x64-1_83     \
            -lboost_system-mgw-mt-s-x64-1_83    \
            -lboost_thread-mgw-mt-s-x64-1_83


unix {
    target.path = /usr/lib
    INSTALLS += target
}


